<template>
  <div class="login_view">
    <h1 class="title">登录</h1>
    <!-- 登录按钮 -->
    <div class="button">
      <button>
        <van-image width="22" height="18" src="/img/login/wx.png" alt="wx" />
        <span>微信登录</span>
      </button>
    </div>
    <!-- 其他登录方式 -->
    <div class="other">
      <p>其他登录方式</p>
      <div class="other_all">
        <div class="way">
          <van-image width="44" height="44" src="/img/login/qq.png" alt="qq" />
          <span class="span">QQ登录</span>
        </div>
        <div class="way">
          <van-image width="44" height="44" src="/img/login/phone.png" alt="phone" />
          <span class="span">免密登录</span>
        </div>
        <div class="way" @click="jumpToLogin">
          <van-image width="44" height="44" src="/img/login/user.png" alt="user" />
          <span class="span">账号登录</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },

  mounted() {},


  methods: {
    // 跳转账号登录
    jumpToLogin(){
        this.$router.push('/otherLogin');
    }
  },
};
</script>

<style lang="scss" scoped>
.login_view{
    height: 100vmax;
    z-index: 999;
    background-color: #fff;
}
.title {
  height: 42px;
  padding-top: 75px;
  margin-bottom: 50px;
  text-align: center;
  font-size: 28px;
  color: #444;
  font-weight: 500;
}
.button {
  text-align: center;
  button {
    width: 315px;
    height: 50px;
    line-height: 50px;
    border-radius: 25px;
    background-color: #09bb07;
    color: #fff;
    font-size: 18px;
    border: none;
    .van-image {
      position: relative;
      top: 2px;
      left: -15px;
    }
  }
}
.other {
  margin-top: 75px;
  position: relative;
  &::before {
    position: absolute;
    content: "";
    width: 20px;
    height: 1px;
    background-color: #bbbbbb;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  p {
    padding-top: 40px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #999;
    text-align: center;
  }
  .other_all {
    width: 84%;
    margin: 0 auto;
    padding: 25px 0;
    display: flex;
    justify-content: space-around;
    .way {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .span{
        display: inline-block;
        margin-top: 9px;
        font-size: 13px;
        color: #666;
    }
  }
}
</style>